package com.yiyue.graduate.dao;

import com.yiyue.graduate.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yiyuexiaofusheng
 * @date 2021/1/25
 */
@Mapper
public interface CommentMapper {


    List<Comment> findByDiscussId(@Param("discuss_id") Long id);

    Comment findOne(Long commentId);

    int save(@Param("comment") Comment comment);

    void delCommentDueBlog(Long id);

    List<Comment> listChildrenComment(@Param("comment") Comment comment);
}
